package com.hubt.model;

import java.io.Serializable;

public class PtRRoleOrgan implements Serializable {
    private String dutyid;

    private String name;

    private String organUuid;

    private String roleUuid;

    private static final long serialVersionUID = 1L;

    public String getDutyid() {
        return dutyid;
    }

    public void setDutyid(String dutyid) {
        this.dutyid = dutyid == null ? null : dutyid.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getOrganUuid() {
        return organUuid;
    }

    public void setOrganUuid(String organUuid) {
        this.organUuid = organUuid == null ? null : organUuid.trim();
    }

    public String getRoleUuid() {
        return roleUuid;
    }

    public void setRoleUuid(String roleUuid) {
        this.roleUuid = roleUuid == null ? null : roleUuid.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PtRRoleOrgan other = (PtRRoleOrgan) that;
        return (this.getDutyid() == null ? other.getDutyid() == null : this.getDutyid().equals(other.getDutyid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getOrganUuid() == null ? other.getOrganUuid() == null : this.getOrganUuid().equals(other.getOrganUuid()))
            && (this.getRoleUuid() == null ? other.getRoleUuid() == null : this.getRoleUuid().equals(other.getRoleUuid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDutyid() == null) ? 0 : getDutyid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getOrganUuid() == null) ? 0 : getOrganUuid().hashCode());
        result = prime * result + ((getRoleUuid() == null) ? 0 : getRoleUuid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dutyid=").append(dutyid);
        sb.append(", name=").append(name);
        sb.append(", organUuid=").append(organUuid);
        sb.append(", roleUuid=").append(roleUuid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}